package com.suke.czx.modules.tb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suke.czx.modules.tb.entity.TbOrderInfo;
import com.suke.czx.modules.tb.vo.OrderVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 订单表
 *
 * @author developer
 * @email developer@163.com
 * @date 2025-05-19 07:16:43
 */
public interface TbOrderInfoMapper extends BaseMapper<TbOrderInfo> {

    IPage<OrderVO> myOrder(Page<OrderVO> page, @Param("params") Map<String, Object> params);

    OrderVO getDetailById(String orderId);

    BigDecimal getSellerTotalAmount(String userId);

    IPage<OrderVO> mySellOrder(Page<OrderVO> page, @Param("params") Map<String, Object> params);
}
